<%--
  Created by IntelliJ IDEA.
  User: 烟光凝
  Date: 2025/2/17
  Time: 16:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>员工列表</h1>
    <hr>
    <table width="100%" cellpadding="0" cellspacing="0" border="1">
        <thead>
        <tr>
            <th>EMPNO</th>
            <th>ENAME</th>
            <th>JOB</th>
            <th>HIREDATE</th>
            <th>MGR</th>
            <th>SAL</th>
            <th>COMM</th>
            <th>DEPTNO</th>
            <th>
                操作
            </th>
        </tr>
        </thead>

        <tbody>
        <c:forEach items="${empList}" var="emp">
            <tr>
                <td>${emp.empno}</td>
                <td>${emp.ename}</td>
                <td>${emp.job}</td>
                <td>${emp.hiredate}</td>
                <td>${emp.mgr}</td>
                <td>${emp.sal}</td>
                <td>${emp.comm}</td>
                <td>${emp.deptno}</td>
                <td>
                    <a href="javascript:f1(${emp.empno})">删除</a>&nbsp;
                    <a href="findEmpServlet?empno=${emp.empno}">修改</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</body>
</html>
